namespace cpp Thrift

enum ImageFormat {
    GERY = 1,
    RGB8 = 2
}

service NodeClient {
    void StartShot(1: string UUID),
    void StopShot(1: string UUID),
    bool ShotStatus(1: string UUID),
    void StartRecord(1: string UUID, 2: string savepath, 3: i16 format_index),
    void StopRecord(1: string UUID),
    bool RecordStatus(1: string UUID),
    set<string> GetAllDevice(),
    map<i16,string> GetAllFormat(),
    string GetSettingList(1: string UUID),
    string GetSettingValue(1: string UUID, 2: i32 setid),
    bool SetSettingValue(1: string UUID, 2: string value),
    string GetShareMemInfo(1: string UUID),
    string GetPreviewImageInfo(1: string UUID),
    void OfflineCamera(1: string UUID),
}
